package com.example.ThinkInJava;

public class Holder15Two<T> {
    T one;
    T two;
    T three;
    Holder15Two(T one, T two, T three) {
        this.one = one;
        this.two = two;
        this.three = three;
    }
    public T getOne() {
        return one;
    }
    public void setOne(T one) {
        this.one = one;
    }

    public static void main(String[] args) {
        Holder15Two<Integer> holder = new Holder15Two<>(1, 2, 3);
        System.out.println(holder.getOne());
        holder.setOne(99);
        System.out.println(holder.getOne());
    }

}
